Repository navigation
Knowledge: connect a Bedrock knowledge base in place - #343
Merged
Merged
Conversation
- A "Bedrock knowledge base" tile when making a new knowledge base: paste its ARN, or on a self-hosted install pick one of the install account's. A bad ARN and an AWS account that isn't connected are said before anything is sent; naming it, then one test search on the server. - A failed test search shows what happened and what to do, with the one-click CoderHelmLogReader update when the role only lacks the grant, and says plainly when the install's access stack hasn't been applied. - The base page says "Connected in place: searched live in your AWS account, nothing copied" instead of a file list: where it lives, how it is reached, and a connection check. No uploads, apps or drop target there; the list card says it is searched live. - ApiError keeps the answer's JSON, for pages that show more than the message. - Docs: the hosted knowledge sources page. - openapi-fields from the platform's knowledge-connect-bedrock branch.
nambok
force-pushed
the
knowledge-connect-bedrock
branch
from
November 9, 2026 01:53
f155f89 to
1c11b67
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The dashboard side of connecting a Bedrock knowledge base in place (platform: CoderHelm/coderhelm-platform#526). A new knowledge base can be an Amazon Bedrock knowledge base that Coderhelm searches live in the team's AWS account, with nothing copied. Its page says so instead of listing files.
Changes
components/knowledge/add-flow.tsx): a "Bedrock knowledge base" tile, offered only when making a new knowledge base (a whole base is connected in place, so adding to an existing one never offers it).connect: { provider: "bedrock_kb", target }, and the server runs one test search.CoderHelmLogReaderupdate for that account. When a self-hosted install's access stack hasn't been applied yet, it says so plainly, with Settings, System, Version, Permissions.app/knowledge/base/page.tsx): a connected base shows "Connected in place: searched live in your AWS account, nothing copied" instead of the sources, uploads and file list. The card shows the ARN, account and region, which role searches it, and the search kind, plus Check connection (one test search, the same plain answers). It has no Add button, no upload, no drop target, and Disconnect knowledge base in place of delete, which says nothing changes in AWS.lib/knowledge.ts:Backend,BedrockStart,ConnectProblem,knowledge.bedrock(),knowledge.check().lib/api.ts:ApiErrorkeeps the answer's JSON (body), so a page can show a fix or a link as well as the message.docs/content/docs/concepts/knowledge-sources.mdxhas a section on connecting in place for hosted teams: connect the account, paste the ARN, the one-click grant, citations, and who can read it.openapi-fields.tsregenerated from the platform main after deps: bump typescript from 5.9.3 to 7.0.2 in /infra #526 merged (no field changes; the knowledge API isn't in the public document).docs/platform.lock.jsonmoved to the platform main after deps: bump typescript from 5.9.3 to 7.0.2 in /infra #526 merged, so the hosted docs import the self-hosting guide section the knowledge sources page links to.Verification
npm run openapi:fields -- --ref knowledge-connect-bedrock, thennpm run check:openapi: matches CoderHelm/coderhelm-platform@3cdb08115cb7.npx tsc --noEmit -p .: clean.npm run lint(UI lint): passed, with font-mono back at its baseline because ARNs use<Code>.e2e/knowledge-bedrock.spec.tscovers five cases.knowledge,knowledge-connect,knowledge-picker,knowledge-signinandknowledge-app-choice: 55 passed. One earlier run had a single failure in a Sanity sign-in test, which passed on its own and in the full rerun./api/knowledge/bedrock,/api/knowledge/:id/checkandbackend. Against an older gateway the tile's step can't load its list, and every base reads as kept here.